import request from '@/utils/request'


  //通过系列id查询参数列表
  export function listspecification(query) {
    return request({
      url: '/specification/list',
      method: 'get',
      params: query
    })
  }

  
// 新增参数
export function addspecification(data) {
  return request({
    url: '/specification/add',
    method: 'post',
    data: data
  })
}

// 查询参数详细
export function getspecification(id) {
  return request({
    url: '/specification/' + id,
    method: 'get'
  })
}

  
   // 更新参数
   export function updatespecification(data) {
    return request({
      url: '/specification/update',
      method: 'put',
      data: data
    })
}
  
// 删除参数
export function delspecification(id,specificationId) {
  return request({
    url: '/specification/' + id+'/'+specificationId,
    method: 'delete'
  })
}

